package com.guldan.mapper.db.mapper;

import com.guldan.mapper.db.dto.register.RegisterTempateDTO;
import com.guldan.mapper.db.entity.RegisterSuccess;
import com.guldan.mapper.db.entity.RegisterSuccessExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Silas.
 * Date: 2016/11/20
 * Time: 11:48
 */
public interface RegisterSuccessMapperExt extends RegisterSuccessMapper {

    /**
     * @param example
     * @param offset
     * @param limit
     * @return
     */
    List<RegisterSuccess> selectByExampleWithPaging(
            @Param("example") RegisterSuccessExample example, @Param("offset") int offset,
            @Param("limit") int limit);


    //导出登记表
    List<RegisterTempateDTO> needReportingList(@Param("areaIds") List<Integer> areaIds,
                                               @Param("name") String name,
                                               @Param("identNumber") String identNumber,
                                               @Param("isMaster") Integer isMaster,
                                               @Param("isAll") Integer isAll,
                                               @Param("citizenIds") List<Integer> citizenIds);

    //登记批次一键结转
    int copyBatchData(@Param("batchId") Integer batchId,
                      @Param("newBatchId") Integer newBatchId,
                      @Param("year") Integer year,
                      @Param("subsidyCount") Integer subsidyCount,
                      @Param("state") List<Integer> state);

}
